package request

import (
	"gitee.com/cjsn/topsdk/util"
)

type TmallServicecenterAnomalyrecourseHomedecorationResponseRequest struct {
	/*
	   投诉单id     */
	Id *int64 `json:"id" required:"true" `
	/*
	   是否已联系商家；0：未联系；1：已联系     */
	ContactSeller *int64 `json:"contact_seller" required:"true" `
	/*
	   响应方案     */
	Remark *string `json:"remark" required:"true" `
	/*
	   图片凭证     */
	Images *[]string `json:"images,omitempty" required:"false" `
}

func (s *TmallServicecenterAnomalyrecourseHomedecorationResponseRequest) SetId(v int64) *TmallServicecenterAnomalyrecourseHomedecorationResponseRequest {
	s.Id = &v
	return s
}
func (s *TmallServicecenterAnomalyrecourseHomedecorationResponseRequest) SetContactSeller(v int64) *TmallServicecenterAnomalyrecourseHomedecorationResponseRequest {
	s.ContactSeller = &v
	return s
}
func (s *TmallServicecenterAnomalyrecourseHomedecorationResponseRequest) SetRemark(v string) *TmallServicecenterAnomalyrecourseHomedecorationResponseRequest {
	s.Remark = &v
	return s
}
func (s *TmallServicecenterAnomalyrecourseHomedecorationResponseRequest) SetImages(v []string) *TmallServicecenterAnomalyrecourseHomedecorationResponseRequest {
	s.Images = &v
	return s
}

func (req *TmallServicecenterAnomalyrecourseHomedecorationResponseRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.Id != nil {
		paramMap["id"] = *req.Id
	}
	if req.ContactSeller != nil {
		paramMap["contact_seller"] = *req.ContactSeller
	}
	if req.Remark != nil {
		paramMap["remark"] = *req.Remark
	}
	if req.Images != nil {
		paramMap["images"] = util.ConvertBasicList(*req.Images)
	}
	return paramMap
}

func (req *TmallServicecenterAnomalyrecourseHomedecorationResponseRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
